import axios from '@/util'; 

import type {
  chaXunKaHaoResultDto,
} from './typings';



/**
 * 查询卡号列表 GET /api/kaHaoGuanLiController/chaXunKaHao
 */
export async function get_api_kahaoguanlicontroller_chaxunkahao (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<chaXunKaHaoResultDto> {
  return axios({
    method: 'GET',
    url: `/api/kaHaoGuanLiController/chaXunKaHao`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 创建卡号 POST /api/kaHaoGuanLiController/chuangJianKaHao
 */
export async function post_api_kahaoguanlicontroller_chuangjiankahao (
  data: {
    /**  */
    kaHao?: string;
    /**  */
    jiFen?: string;
    /**  */
    chuangJianShiJian?: string;
    /**  */
    guoQiShiJian?: string;
    /**  */
    keYong?: boolean;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/kaHaoGuanLiController/chuangJianKaHao`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 使用卡号 POST /api/kaHaoGuanLiController/shiYongKaHao
 */
export async function post_api_kahaoguanlicontroller_shiyongkahao (
  data: {
    /**  */
    kaHao?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/kaHaoGuanLiController/shiYongKaHao`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 修改卡号 PUT /api/kaHaoGuanLiController/xiuGaiKaHao
 */
export async function put_api_kahaoguanlicontroller_xiugaikahao (
  data: {
    /**  */
    kaHao?: string;
    /**  */
    jiFen?: string;
    /**  */
    keYong?: boolean;
    /**  */
    guoQiShiJian?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'PUT',
    url: `/api/kaHaoGuanLiController/xiuGaiKaHao`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 删除卡号 DELETE /api/kaHaoGuanLiController/shanChuKaHao
 */
export async function delete_api_kahaoguanlicontroller_shanchukahao (
  data: {
    /**  */
    kaHao?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'DELETE',
    url: `/api/kaHaoGuanLiController/shanChuKaHao`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}
